using System;
using System.Collections.Generic;

namespace Liya.Crm.Data.Models
{
    public class Sys_Department
    {
        public Sys_Department()
        {
            this.Sys_UserInfo = new List<Sys_UserInfo>();
        }

        public int DId { get; set; }
        public string DName { get; set; }
        public string DTel { get; set; }
        public string DFax { get; set; }
        public Nullable<int> DParentID { get; set; }
        public Nullable<int> DCompanyId { get; set; }
        public Nullable<int> DManagerId { get; set; }
        public string DFunction { get; set; }
        public Nullable<bool> DFlag { get; set; }
        public Nullable<int> DSortNo { get; set; }
        public string DMemo { get; set; }
        public virtual Sys_Company Sys_Company { get; set; }
        public virtual ICollection<Sys_UserInfo> Sys_UserInfo { get; set; }
    }
}
